<div id="editor">

<form action="" method="post">

<div class="tabs">
	<ul>

	<? $t = ' class="current"'; 
		foreach($DATA['langs'] as $lang) { $l = $lang['text']; ?>
	
		<li id="<?=$l?>_tab"<?=$t?>><span><a href="javascript:mcTabs.displayTab('<?=$l?>_tab','<?=$l?>_panel');" onmousedown="return false;"><?=$lang['assoc']?></a></span></li>
		
	<? $t = ''; } ?>

	</ul>
</div>

<div class="panel_wrapper">

	<? $t = ' current'; 
		foreach($DATA['langs'] as $lang) { $l = $lang['text']; ?>


	<div id="<?=$l?>_panel" class="panel<?=$t?>">
		<fieldset>
			<legend>=</legend>

			<div><strong>Edit <?=dat('component', 'name')?> contents</strong><br />
				<textarea name="body[<?=$l?>]" cols="80" rows="25"><?=dat('object', $l, 'value')?></textarea>
			</div>


		</fieldset>
	</div>

	<? $t = ''; } ?>

</div>
	
	<p><input type="submit" name="editor_save" value="Save" /></p>

</form>

</div>
